import { axios } from '@/utils/request'

export const imageUpload = (data) => {
  return axios({
    url: '/image-upload',
    method: 'post',
    data: data
  })
}

export const getKnowlegeGraph = (data) => {
  return axios({
    url: '/getKnowlegeGraph/',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })
}

export const getSimilarEntity = (data) => {
  return axios({
    url: '/getSimilarEntity/',
    method: 'post',
    data: data,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
  })
}

export const getNotice = (params) => {
  return axios({
    url: '/getNotice/',
    method: 'get',
    params: params
  })
}

export const getNews = (params) => {
  return axios({
    url: '/getNews/',
    method: 'get',
    params: params
  })
}

export const getEntityInfo = (params) => {
  return axios({
    url: '/getEntityInfo/',
    method: 'get',
    params: params
  })
}
